package com.itheima.edu.info.manager.B_Controller;

import com.itheima.edu.info.manager.C_Service.StudentService;
import com.itheima.edu.info.manager.E_domain.Student;

import java.util.ArrayList;
import java.util.Scanner;

public class OtherStudentController extends BaseStudentController {

    Scanner sc = new Scanner(System.in);

    //录入学生信息：
    @Override
    public Student inputStudentInfo(String id) {
        System.out.println("请输入新的学生姓名：");
        String name = sc.next();

        int age = getAge();

        System.out.println("请输入新的学生生日：");
        String birthday = sc.next();

        //将新的学生封装成学生对象，交给业务员：
        Student student = new Student(id,name,age,birthday);
        /*student.setId(id);
        student.setName(name);
        student.setAge(age);
        student.setBirthday(birthday);*/
        return student;
    }
}
